package com.abc.cloud.dao;

import com.abc.cloud.dto.im.ContactsUserDto;
import com.abc.cloud.dto.user.UserDto;
import com.abc.cloud.entity.ContactsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 联系人表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:19:41
 */
@Mapper
public interface ContactsDao extends BaseMapper<ContactsEntity> {

    List<ContactsUserDto> queryByGroupId(Long groupId);

    ContactsUserDto queryById(Long id);

    void deleteContactsByIds(@Param("list") List<Long> ids,
                             @Param("status") Integer status);
}
